import request from '@/utils/request'

export function getLogin (data) {
  return request({
    url: '/user/login',
    method: 'POST',
    data
  })
}

export function getUser () {
  return request({
    url: '/user'
  })
}

export function getFavorate () {
  return request({
    url: '/user/favorites'
  })
}
